<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>添加医生</title>
</head>
<body>
<form th:action="@{/doctor/doadd}" th:method="post">
    <table th:object="${doctor}">
        <tr>
            <td>医生编号</td>
            <td><input type="number" name="id" th:text="${doctor.doctor_id}"></td>
        </tr>
        <tr>
            <td>医生姓名</td>
            <td><input type="text" name="name" th:text="${doctor.doctor_name}"></td>
        </tr>
        <tr>
            <td>照片</td>
            <td><input type="file" name="pic" th:text="${doctor.doctor_pic}"></td>
        </tr>
        <!--        <tr>-->
        <!--            <td>科室</td>-->
        <!--            <td>-->
        <!--                <select th:name="${doctor.epartmene_id}">-->
        <!--                    <option th:each="item,vx:${departmentlist}" th:selected="(${item.id} == ${doctor.epartmene_id})" th:value="${item.departname}"></option>-->
        <!--                </select>-->
        <!--            </td>-->
        <!--        </tr>-->
        <tr>
            <td>医生电话</td>
            <td><input type="text" name="phonenumber" th:text="${doctor.doctor_phonenumber}"></td>
        </tr>
        <tr>
            <td>职位</td>
            <td><input th:type="text" name="post" th:text="${doctor.doctor_post}"></td>
        </tr>
        <tr>
            <td>擅长</td>
            <td><input type="text" name="goodat" th:text="${doctor.doctor_goodat}"></td>
        </tr>
        <tr>
            <td>地址</td>
            <td><input type="text" name="addr" th:text="${doctor.doctor_addr}"></td>
        </tr>
        <tr>
            <td>每日最多可预约患者数</td>
            <td><input type="number" name="maxpatient" th:text="${doctor.maxpatient}"></td>
        </tr>
        <tr>
            <td></td>
            <td><input th:type="submit" th:value="添加"></td>
            <td th:value="${add}"></td>
        </tr>
    </table>
</form>
</body>
</html>